# common_db.py
from pymongo import MongoClient
from xhs import config

# MongoDB连接配置（本地或远程）
client = MongoClient(config.mongo_url)
db = client[config.mango_db]

# 任务集合（存储小红书ID任务）
db_source = db[config.mango_source]
db_device = db[config.mango_device]
db_send = db[config.mango_send]
